QT       += core gui widgets charts

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    Code/main.cpp \
    Code/mainwindow.cpp\
    Code/Data/DataManager.cpp \
    Code/Simulator.cpp \
    Code/Schedule/Scheduler.cpp \
    Code/Component/Component.cpp\
    Code/Component/ComponentDialog.cpp\
    Code/Component/dieselgen.cpp \
    Code/Component/pv.cpp \
    Code/Component/energystorage.cpp \
    Code/Component/grid.cpp \
    Code/Component/load.cpp \
    Code/Component/gprice.cpp \
    componentpowercurvedialog.cpp \
    paramconfigdlg.cpp

HEADERS += \
    Code/mainwindow.h\
    Code/Data/DataManager.h \
    Code/Simulator.h \
    Code/SystemState.h \
    Code/Schedule/Scheduler.h \
    Code/Component/ComponentParam.h\
    Code/Component/Component.h\
    Code/Component/ComponentDialog.h\
    Code/Component/dieselgen.h \
    Code/Component/pv.h \
    Code/Component/energystorage.h \
    Code/Component/grid.h \
    Code/Component/load.h \
    Code/Component/gprice.h \
    componentpowercurvedialog.h \
    paramconfigdlg.h

FORMS += \
    Code/ComponentDialog.ui \
    Code/mainwindow.ui\
    componentpowercurvedialog.ui \
    dieselgen.ui \
    energystorage.ui \
    gprice.ui \
    grid.ui \
    load.ui \
    paramconfigdlg.ui \
    pv.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

DISTFILES += \

RESOURCES += \
    resource.qrc

